string_reverse
This function reverses a given string.
string string_reverse(string the_string)
Parameters:
the_string
The string that will be reversed.
Return value:
The string in reverse.
Remarks:
If an empty string is passed then no string will be returned.
Example:
void main()
{
alert("string_reverse test", string_reverse("Hello, I am a string!")); //output should be !gnirts a ma I ,olleH
}